﻿module Sustainalytics.Portfolio {

    export class PortfolioBaseDto {
        public id: string;
        public name : string;
    }

    export class RelatedUniverses {
        public id: string;
        public name: string;
    }


    export class PortfolioDto extends PortfolioBaseDto {
        public addedByUserId: string;
        public addedByUserName: string;
        public addedByFullName: string;
        public companyCount: number;
        public dateCreated: Date;
        public dateModified: Date;
        public sharingStatus: PortfolioSharingStatus;
        public isMyPortfolio: boolean;
        public hasSubscription: boolean;
        public isSystemPortfolio: boolean;
        public isReadonly: boolean;
        public details:string;
    }

    export class PortfolioListDto {
        public portfolios: PortfolioDto[];
        public count:number;
    }

    export class ManualSystemPortfolioDto extends PortfolioDto {
        public relatedUniverses: RelatedUniverses[];
    }
}